package cn.waxcc.service.impl;

import cn.waxcc.mapper.TestMapper;
import cn.waxcc.pojo.Test;
import cn.waxcc.service.TestService;
import com.github.pagehelper.PageHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: springboot-medicalapp
 * @ClassName TestServiceImpl
 * @description:
 * @author: JYF
 * @create: 2023-03-21 08:36
 * @Version 1.0
 */
@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;

    @Override
    public List<Test> findAll() {
        return testMapper.findAll();
    }

    //分页查询功能
    @Override
    public List<Test> queryUserByPage(Integer pageNum,Integer pageSize){
        PageHelper.startPage(pageNum,pageSize);
        return testMapper.findAll();
    }



}
